package com.pf.enums;

import lombok.Getter;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2022/10/16 15:37
 */
@Getter
public enum ResultRespEnum {

    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    SYSTEM_ERROR(99999, "系统错误"),
    PARAM_ERROR(10000, "参数错误"),
    TOKEN_ERROR(10001, "token错误或失效");


    private Integer code;
    private String message;

    ResultRespEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
